package com.xuecheng.content.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xuecheng.content.entity.CoursePub;

/**
 * <p>
 * 课程发布 Mapper 接口
 * </p>
 *
 * @author 杨佳畅
 */
public interface CoursePubMapper extends BaseMapper<CoursePub> {

    /**
     * 查询课程ID，用于判断课程是否在课程发布表中存在
     *
     * @param courseId  课程ID
     * @param companyId 机构ID
     * @return
     */
    Long queryCourseId(Long courseId, Long companyId);

}
